package com.spsoft.core.exception;

import com.spsoft.core.enums.ResponseEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * 权限异常
 *
 * @author cdl
 * @date 2023/11/09
 */
@Getter
@Setter
public class AuthException  extends RuntimeException{
    private String code;
    private String msg;
    private ResponseEnum e;
    private static final long serialVersionUID = 1L;
    public AuthException( ResponseEnum responseEnum) {
        this.code = responseEnum.getCode();
        this.msg = responseEnum.getMsg();
        this.e = responseEnum;
    }
}
